<template>
	<view class="help">
		<view class="list" v-for="(item,index) of list" :key="index" @click="goto(`pages/my/helpdetail?id=${item.id}`)">
			<view class="l">{{item.name}}</view>
			<u-icon name="arrow-right" color="#999"></u-icon>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: ''
			};
		},
		onLoad() {
			this.getList()
		},
		methods:{
			getList() {
				uni.$u.http.post('/help',{
					type: 'list'
				}).then(res => {
					if (res.code == 1) {
						this.list = res.data
							
					}
				}).catch((res) => {
							
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
.help{
	.list{
		height: 88rpx;
		display: flex;
		align-items: center;
		padding: 0 20rpx;
		justify-content: space-between;
		position: relative;
		border-bottom: 1px solid #eee;
		.l{
			color: #333;
			font-size: 28rpx;
			
		}
	}
}
</style>
